//
//  ValiButton.h
//  EachPlan
//
//  Created by 申巧 on 15/6/4.
//  Copyright (c) 2015年 XiaoZhou. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 @brief	验证类型
 */
typedef enum {
    RegisterAccount  = 1, /**< 注册账号 */
    GetbackPassword  = 2, /**< 找回密码 */
} VerifyType;

@interface ValiButton : UIButton

@property (nonatomic,assign) VerifyType type;

@property (nonatomic,strong) NSTimer *timer;

@property(nonatomic,strong)UILabel* time;
@property(nonatomic,copy)NSString *oldTitle;

@property(nonatomic,assign)BOOL isClick;//是否点击过
@property (nonatomic,assign) int second;

-(void)validate;
-(void)stopRefreshTime;
@end
